package edu.scau.mis.pos.domain;

import edu.scau.mis.core.domain.BaseEntity;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author 林琛理
 * @date 2022/9/4 16:04
 */
@Component
public class Category extends BaseEntity implements Serializable {
    private Long categoryId;
    private String categoryName;

    public Category(){

    }

    public Category(Long categoryId, String categoryName) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return "Category{" +
                "categoryId=" + categoryId +
                ", categoryName='" + categoryName + '\'' +
                '}';
    }
}
